package com.snailvr.tv.network.service;

import com.snailvr.tv.network.entity.PlayUrlResponBean;
import com.snailvr.tv.network.entity.RoomInfoResponBean;
import com.snailvr.tv.network.entity.RoomListResponBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/2/10.
 */

public interface RoomInfoService {
    @Headers({"Accept-version: 2.0.1","Content-Type: application/json"})
    @GET("channel/roomlist")
    Call<RoomListResponBean> getRoomList(
            @Header("sessionid") String sessionid,
            @Header("token") String token,
            @Query("id") int channel_id,
            @Query("page") int page,
            @Query("pageSize") int pageSize
    );



    @Headers({"Accept-version: 2.0.1","Content-Type: application/json"})
    @GET("room/info")
    Call<RoomInfoResponBean> getRoomInfo(
            @Header("sessionid") String sessionid,
            @Header("token") String token,
            @Query("id") int room_id);

    @Headers({"Accept-version: 2.0.1","Content-Type: application/json"})
    @GET("room/playurl")
    Call<PlayUrlResponBean> getPlayUrl(
            @Header("sessionid") String sessionid,
            @Header("token") String token,
            @Query("id") int room_id);
}
